package com.lb.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName 线程池
 * @Author LB
 * @Date 2021/12/24 10:21
 **/
public class ThreadPool {
    public static void main(String[] args) {
        ExecutorService poolExec = Executors.newFixedThreadPool(3);
        poolExec.submit(new RunnableDemo());
    }
}